package demo1;

import java.util.Arrays;

public class Test7 {

    /**
     * 用array.clone进行拷贝
     * @param args
     */
    public static void main(String[] args) {
        int[] array = {1,2,3,4,5};
        int[] copy = array.clone();
        System.out.println(Arrays.toString(array));
        System.out.println(Arrays.toString(copy));
    }

}
